package com.Java.train.business.entity.DTO;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Getter
@Setter
@ToString
public class ConfirmOrderReqDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "日志id")
    private String logId;
    @NotEmpty(message = "日期")
    private Date date;
    @NotBlank(message = "列车编号")
    private String trainCode;
    @NotEmpty
    private Long memberId;
}
